<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:hmrTable="http://java.sun.com/jsf/composite"
	xmlns:p="http://primefaces.org/ui">

		<div align="center" style="height:95%" >
			<p:spacer height="50px"/>
			<hmrTable:rolesTable roles="#{teacherBean.teacher.user.roles}" header="#{msgs.AccessRoles}" />	
		</div>

		<h:form id="rolesForm" prependId="false" >
			<div align="left"   >
				<p:commandButton  value="#{msgs.Save}"		action="#{teacherBean.saveTeacher}"		 
					ajax="true"	update=":growl"		icon="ui-icon-disk"	rendered="#{teacherBean.teacher.id != null}" />
				<p:commandButton  value="#{msgs.Create}"	action="#{teacherBean.createTeacher}"	
					ajax="true"	update=":growl,:content"		icon="ui-icon-document"	rendered="#{teacherBean.teacher.id == null}" />
				<p:spacer width="50px"/>	
				<p:commandButton  value="#{msgs.Cancel}"	action="#{teacherBean.cancelChange}"	icon="ui-icon-cancel"/>
			</div>
		</h:form>

</html>